﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SiteRequireLogin.Master" AutoEventWireup="true" CodeBehind="Main.aspx.cs" Inherits="TranTekBE.Missed.Main" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    
    <link href="assets/css/main-style.css" rel="stylesheet" />
    <link href="assets/css/style.css" rel="stylesheet" />
    <link href="assets/font-awesome/css/font-awesome.css" rel="stylesheet" />
    <link href="assets/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
    <link href="assets/plugins/timeline/timeline.css" rel="stylesheet" />
    <link href="assets/plugins/social-buttons/social-buttons.css" rel="stylesheet" />
    <script src="assets/plugins/pace/pace.js"></script>
    <link href="assets/plugins/bootstrap/bootstrap.css" rel="stylesheet" />
    <script src="assets/plugins/bootstrap/bootstrap.js"></script>
    <script src="assets/plugins/bootstrap/bootstrap.min.js"></script>
    <script src="assets/plugins/dataTables/jquery.dataTables.js"></script>
    <link href="assets/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet" />
    <script src="assets/plugins/dataTables/dataTables.bootstrap.js"></script>
    <script src="assets/plugins/flot/excanvas.min.js"></script>
    <script src="assets/plugins/flot/jquery.flot.js"></script>
    <script src="assets/plugins/flot/jquery.flot.pie.js"></script>
    <script src="assets/plugins/flot/jquery.flot.resize.js"></script>
    <script src="assets/plugins/flot/jquery.flot.tooltip.min.js"></script>
    <script src="assets/plugins/morris/raphael-2.1.0.min.js"></script>
    <link href="assets/plugins/morris/morris-0.4.3.min.css" rel="stylesheet" />
    <script src="assets/plugins/morris/morris.js"></script>
    <script src="assets/plugins/metisMenu/jquery.metisMenu.js"></script>
    <link href="assets/plugins/pace/pace-theme-big-counter.css" rel="stylesheet" />
    <script src="assets/scripts/dashboard-demo.js"></script>
    <script src="assets/scripts/flot-demo.js"></script>
    <script src="assets/scripts/morris-demo.js"></script>
    <script src="assets/scripts/siminta.js"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="BodyContent" runat="server">
     <div id="wrappermiss">

          <nav class="navbar-default navbar-static-side" role="navigation">
            <!-- sidebar-collapse -->
            <div class="sidebar-collapse">
                <!-- side-menu -->
                <ul class="nav" id="side-menu">
                    <li>
                        <!-- user image section-->
                        <div class="user-section">
                            <div class="user-section-inner">
                                <img src="../assets/img/user.jpg" alt="">
                            </div>
                            <div class="user-info">
                                <div><strong><asp:Literal ID="lastname" runat="server"></asp:Literal></strong></div>
                                <div class="user-text-online">
                                    <span class="user-circle-online btn btn-success btn-circle "></span>&nbsp;Online
                                </div>
                            </div>
                        </div>
                        <!--end user image section-->
                    </li>
                     <li >
                        <a href="Addmissed.aspx"><i class="fa fa-edit fa-fw"></i>Thêm đơn hàng</a>
                    </li>
                     <li class="selected">
                        <a href="Main.aspx"><i class="fa fa-files-o fa-fw"></i>Xem và Xuất báo cáo</a>
                    </li>
                </ul>
                <!-- end side-menu -->
            </div>
            <!-- end sidebar-collapse -->
        


    </nav>
          
        <div id="page-wrapper">
                <div class="col-lg-12">
                    <h1 class="page-header">Xem các đơn hàng</h1>
                </div>
            <div class="col-lg-12">
                     <!-- End Form Elements -->
                     <!-- 5 Đơn hàng nhỡ trong ngày-->
                <script type="text/javascript">
                    function LoadJS() {
                        $("#<%=start.ClientID%>").datepicker({
                            changeMonth: true,
                            changeYear: true,
                            showButtonPanel: true,
                        });
                        $("#<%=end.ClientID%>").datepicker({
                            changeMonth: true,
                            changeYear: true,
                            showButtonPanel: true,
                        });
                    }
                    </script>
                <div class="row">
                    <div class="col-lg-12">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                               Lọc đơn hàng nhỡ theo: thời gian và cửa hàng
                            </div>
                            <div class="panel-body">
                                <div class="row">
                                    <form>
                                        <div class="col-lg-6">
                                            <div class="form-group">
                                                <label>Ngày bắt đầu</label>
                                                <asp:TextBox ID="start" runat="server" class="form-control"></asp:TextBox>
                                                <p class="help-block">Ví dụ: 11/12/2013</p>
                                            </div>
                                            <div class="form-group">
                                            <label>Nhà thuốc:</label>
                                                <asp:DropDownList ID="idstore" class="form-control" runat="server"></asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="col-lg-6">
                                            <div class="form-group">
                                            <label>Đến ngày</label>
                                            <asp:TextBox ID="end" runat="server" class="form-control"></asp:TextBox>
                                            </div>
                                            <div class="form-group">
                                            <label>Lý do:</label>
                                            <div class="radio">
                                                <label> 
                                                    <asp:RadioButton ID="stock" GroupName="abc" runat="server" Text="Hết hàng" />
                                                </label>
                                            </div>
                                            <div class="radio">
                                                <label>
                                                    <asp:RadioButton ID="noavaible" GroupName="abc" runat="server" Text="Sản phẩm chưa có"/>
                                                </label>
                                            </div>
                                            <div class="radio">
                                            <label>
                                                <asp:RadioButton ID="allselect" GroupName="abc" runat="server" Text="Tất cả" />
                                            </label>
                                            </div>
                                            </div>
                                            <asp:GridView ID="exportexcel" runat="server" BackColor="#DEBA84" 
                                                BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" 
                                                CellPadding="3" CellSpacing="2">
                                                <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                                                <HeaderStyle BackColor="#A55129" Font-Bold="True" 
                                                ForeColor="White" />
                                                <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
                                                <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
                                                <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" 
                                                ForeColor="White" />
  
                                            </asp:GridView>
                                             <asp:Button ID="fill" runat="server" Text="Lọc kết quả" OnClick="fill_Click" />
                                            <asp:Button ID="export" runat="server" Text="Xuất ra file Excel" OnClick="export_Click"/>
                                        </div>
                                        
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                 </div>


                <!-- loc-->
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <asp:Literal ID="titlesearch" runat="server"></asp:Literal></div>
                        <div class="panel-body">
                            <div class="table-responsive">
                                <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                                    <thead>
                                        <tr>
                                            <th>Tên thuốc</th>
                                            <th>Mã thuốc</th>
                                            <th>Lý do</th>
                                            <th>Cửa hàng</th>
                                            <th>Thời gian</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <asp:Literal ID="showmissedorder" runat="server"></asp:Literal>
                                    </tbody>
                                </table>
                                 <div class="pagination">
                                    <ul>
                                        <asp:Literal ID="pageselect" runat="server"></asp:Literal>
                                    </ul>
                               </div>
                            </div>
                            
                        </div>
                    </div>
                    
                </div> 
            </div>      
        </div>
</asp:Content>
